package com.twu.biblioteca;

public class Book {

    private final String name;
    private boolean isNotReserved = true;

    public Book(String name) {

        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }


    public boolean reserveBook() {
        if (isNotReserved) {
            isNotReserved = false;
            return true;
        }
        return false;
    }
}
